Skip to main content

ArrayComponents

ArrayComponents[array] gives an array in which all identical elements of array are replaced by an integer index representing the component in which the element lies.

ArrayComponents[array,level] finds the identical elements at the specified level in array

ArrayComponents[array,level,rules] uses a rule or a list of rules for specifying the labels.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.